* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); height: 100vh; overflow: hidden; }
.container { display: grid; grid-template-rows: auto 1fr; height: 100vh; }
.header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.header h1 { font-size: 2em; margin-bottom: 5px; }
.main-content { display: grid; grid-template-columns: 350px 1fr; height: calc(100vh - 90px); background: white; }
.sidebar { background: #f8f9fa; padding: 25px; border-right: 2px solid #e9ecef; overflow-y: auto; }
.control-group { margin-bottom: 20px; }
.control-group label { display: block; font-weight: 600; color: #495057; margin-bottom: 8px; font-size: 0.9em; }
.mode-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mode-btn { padding: 12px 8px; border: 2px solid #e9ecef; background: white; border-radius: 8px; cursor: pointer; transition: all 0.3s; font-size: 0.85em; font-weight: 600; text-align: center; }
.mode-btn:hover { background: #f8f9fa; }
.mode-btn.active { background: #667eea; color: white; border-color: #667eea; }
.info-box { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); padding: 15px; border-radius: 10px; margin-bottom: 15px; border-left: 4px solid #0ea5e9; }
.info-box h3 { font-size: 0.95em; color: #0c4a6e; margin-bottom: 8px; }
.info-box p { font-size: 0.85em; color: #075985; margin: 4px 0; }
.result-box { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); padding: 20px; border-radius: 12px; margin-top: 15px; }
.result-box h3 { margin-bottom: 12px; color: #2d3748; font-size: 1.1em; }
.result-box p { margin: 8px 0; color: #4a5568; font-size: 0.9em; }
.street-list { max-height: 200px; overflow-y: auto; background: white; padding: 10px; border-radius: 8px; margin-top: 10px; }
.street-item { padding: 5px; border-bottom: 1px solid #e9ecef; font-size: 0.85em; }
.clear-btn { width: 100%; padding: 12px; background: #ef4444; color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 15px; transition: all 0.3s; }
.clear-btn:hover { background: #dc2626; }
.legend { margin-top: 20px; padding-top: 20px; border-top: 2px solid #e9ecef; }
.legend h4 { font-size: 0.9em; color: #495057; margin-bottom: 12px; }
.legend-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.85em; }
.legend-color { width: 20px; height: 20px; border-radius: 4px; }
#map { width: 100%; height: 100%; cursor: crosshair; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: white; padding: 30px; border-radius: 15px; max-width: 500px; width: 90%; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.modal-content h2 { margin-bottom: 20px; color: #2d3748; }
.condition-btn { padding: 15px; margin: 8px 0; border: 2px solid #e9ecef; background: white; border-radius: 8px; cursor: pointer; text-align: left; width: 100%; transition: all 0.3s; }
.condition-btn:hover { border-color: #667eea; background: #f8f9fa; transform: translateX(5px); }
.modal-btn { width: 100%; padding: 12px; background: #6c757d; color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 15px; }
.loading { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 30px 50px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); z-index: 3000; text-align: center; }
.loading.hide { display: none; }
.spinner { border: 4px solid #f3f4f6; border-top: 4px solid #667eea; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes bounce { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.2); } }
.step-indicator { background: #fff7ed; border-left: 4px solid #f59e0b; padding: 12px; border-radius: 8px; margin-bottom: 15px; font-size: 0.85em; color: #92400e; }